package com.woniu.utils;


import lombok.Getter;

@Getter
public enum ResponseEnum {
    OK(200,"操作成功"),
    FAIL(400,"操作失败"),
    USER_LOGIN_ERROR_1(401,"用户名或密码为空"),
    USER_LOGIN_ERROR_2(402,"用户不存在"),
    USER_LOGIN_ERROR_3(403,"密码错误"),
    USER_LOGIN_ERROR_4(404,"用户被禁用"),
    USER_LOGIN_SUCCESS(1000,"登录成功"),
    USER_LOGOUT_SUCCESS(406,"登出成功"),
    USER_NOT_LOGIN(407,"用户未登录"),
    USER_NOT_EXIST(408,"用户不存在"),
    DRUG_STOCK_NOT_ENOUGH(409,"库存不足"),
    EMPTY_EXAM_ITEM_ID(410,"检查项目ID为空"),
    BED_NOT_EXIST(411,"病床不存在或已被占用"),
    PATIENT_NOT_IN_HOSPITAL(412,"操作失败：未找到该患者的有效住院记录"),


    USER_REGISTER_ERROR_1(501, "注册账户不能为空"),
    PARAM_ERROR(400,"参数错误"),
    USER_LOGIN_MISS(401,"token为空" );

    private Integer code;
    private String msg;

    ResponseEnum(Integer code,String msg){
        this.code = code ;
        this.msg  = msg;
    }
}
